package thorsten.wordlist.parser;

public class charFragment {
	private char[] ch;
	private int start;
	private int length;
	private String ref;
	
	public charFragment(char[] ch, int start, int length) {
		super();
		this.ch = ch;
		this.start = start;
		this.length = length;
		this.ref = new String(ch, start, length);
	}
	public char[] getCh() {
		return ch;
	}
	public void setCh(char[] ch) {
		this.ch = ch;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	
	@Override
	public String toString() {
		return new String(ch, start, length) + "[" + this.ref + "]";
	}	
}
